package com.zy.settings

import androidx.fragment.app.Fragment
import com.zy.activity.BaseMainActivity
import com.zy.settings.SettingsConstant.DATA_BACKUP
import com.zy.settings.SettingsConstant.DATA_BACKUP_HISTORY
import com.zy.settings.SettingsConstant.SETTINGS_CODE
import com.zy.settings.fragment.DataBackupFragment
import com.zy.settings.fragment.DataBackupHistoryFragment

class SettingsMainActivity : BaseMainActivity() {

    override val containerFragment: Fragment
        get() {
            return when (intent.getIntExtra(SETTINGS_CODE, 0)) {
                DATA_BACKUP -> DataBackupFragment.newInstance()
                DATA_BACKUP_HISTORY -> DataBackupHistoryFragment.newInstance()
                else -> {
                    DataBackupFragment.newInstance()
                }
            }
        }
}
